import { BannerComponent } from './common/banner/banner.component';
import { PromotionComponent } from './home/promotion/promotion.component';
import { NavComponent } from './common/nav/nav.component';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule,JsonpModule  } from '@angular/http';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { AppComponent } from './app.component';
import { UtilService } from './vsp/util.service';
import { SwiperModule } from 'angular2-useful-swiper';
import { ColoumComponent } from './home/coloum/coloum.component';
import { ActivityComponent } from './home/activity/activity.component';
import { BackToTopComponent } from './common/back-to-top/back-to-top.component';
import { HomeComponent } from './home/home.component';
import { GoodinfoComponent } from './good/goodinfo/goodinfo.component';
import { GooddetailComponent } from './good/gooddetail/gooddetail.component';
import { GoodrecComponent } from './good/goodrec/goodrec.component';
import { GoodComponent } from './good/good.component';
import { AppRoutingModule } from './app-routing.module';
import {HashLocationStrategy, LocationStrategy} from '@angular/common';
import { InfiniteScrollModule } from 'angular2-infinite-scroll';
import { LazyLoadImageModule } from 'ng-lazyload-image';
@NgModule({
  declarations: [
    AppComponent,
    NavComponent,
    BannerComponent,
    ColoumComponent,
    ActivityComponent,
    PromotionComponent,
    BackToTopComponent,
    HomeComponent,
    GoodinfoComponent,
    GooddetailComponent,
    GoodrecComponent,
    GoodComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    JsonpModule,
    BrowserAnimationsModule,
    SwiperModule,
    NgZorroAntdModule.forRoot(),
    AppRoutingModule,
    InfiniteScrollModule,
    LazyLoadImageModule
  ],
  providers: [UtilService,{provide: LocationStrategy, useClass: HashLocationStrategy}],
  bootstrap: [AppComponent]
})
export class AppModule { }
